# -*- coding: utf-8 -*-
# @Time    : 2019/5/1 20:04
# @Author  : icedew
# @File    : forms.py.py
# @Software: PyCharm

from wtforms import Form

class BaseForm(Form):
    def get_error(self):
        message = self.errors.popitem()[1][0]
        return message